﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
using Sharp.Domain.CMSBoundedContext.AritcleModule.Aggregates;

namespace Sharp.Domain.CMSBoundedContext.ModelConfigurations
{
    public partial class GatherTypeConfiguration
          : EntityTypeConfiguration<Gather>
    {
        public GatherTypeConfiguration()
        {
            this.HasOptional(t => t.Parent)
            .WithMany(t => t.Children)
            .HasForeignKey(d => d.ParentId);
        }
    }
}

